package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="GROUPNAME"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class Groupname implements Serializable {

    /** identifier field */
    private String groupcode;

    /** nullable persistent field */
    private String groupname;

    /** full constructor */
    public Groupname(String groupcode, String groupname) {
        this.groupcode = groupcode;
        this.groupname = groupname;
    }

    /** default constructor */
    public Groupname() {
    }

    /** minimal constructor */
    public Groupname(String groupcode) {
        this.groupcode = groupcode;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="GROUPCODE"
     *         
     */
    public String getGroupcode() {
        return this.groupcode;
    }

    public void setGroupcode(String groupcode) {
        this.groupcode = groupcode;
    }

    /** 
     *            @hibernate.property
     *             column="GROUPNAME"
     *             length="60"
     *         
     */
    public String getGroupname() {
        return this.groupname;
    }

    public void setGroupname(String groupname) {
        this.groupname = groupname;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("groupcode", getGroupcode())
            .toString();
    }

}
